package com.yantong.mapper;

import com.yantong.pojo.Video;
import org.apache.ibatis.session.RowBounds;

import java.util.List;
import java.util.Map;

/**
 * @author chenhu
 * @Date: 2020/08/03 15:34
 */
public interface VideoMapper {
    int countByParams(Map<String, Object> params);
    List<Video> listByParams(Map<String, Object> params, RowBounds rowBounds);
    int updateVideoType(Video video);
    int addVideoType(Video video);
    Video getVideoTypePrimaryKey(Long video_id);
    int countByVideoList(Map<String, Object> params);
    List<Video> videoList(Map<String, Object> params, RowBounds rowBounds);
    int addVideo(Video video);
    Video getVideoPrimaryKey(Long id);
    int updateVideo(Video video);
    int updateVideoAddOne(Video video);
}
